package com.diligent.cloud.sfc.resources;

import com.canny.commons.model.ObjectResult;
import com.diligent.cloud.web.resource.IBaseResource;
import io.swagger.annotations.ApiOperation;
import io.swagger.annotations.ApiParam;
import org.springframework.http.ResponseEntity;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;

/**
 * WipResource class
 * 线边库存
 * @author xf107278
 * @date 4/6/2020
 */
@RequestMapping("/sfc-inventory")
public interface WipResource extends IBaseResource {

    @GetMapping(value = "/mat" )
    @ApiOperation(value = "线边仓/获取线边仓物料信息" , notes = "线边仓/获取线边仓物料信息" ,tags = "线边仓")
    ResponseEntity<ObjectResult>getInventoryByMatCodeAndCwocCode(@ApiParam(name = "matCode", value = "物料编号", type = "String")@RequestParam("matCode") String matCode,
                                                                 @ApiParam(name = "cwocCode", value = "车间编号", type = "String")@RequestParam("cwocCode") String cwocCode,
                                                                 @ApiParam(name = "batchCode", value = "物料属性集号", type = "String")@RequestParam("batchCode") String batchCode,
                                                                 @ApiParam(name = "systemId", value = "账套id", type = "Long")@RequestParam("systemId") Long systemId);


}
